<?php

namespace App\Http\Controllers\DesignPattern\Creational\Structural;

use App\Model\DesignPattern\Creational\Structural\Decorator\MilkCoffee;
use App\Model\DesignPattern\Creational\Structural\Decorator\SimpleCoffee;
use App\Http\Controllers\Controller;

class DecoratorController extends Controller
{
    public function index()
    {
        $res = new MilkCoffee(new SimpleCoffee());
        return $res->getCost().'<br/>'.$res->getDescription();
    }
}
